package com.java.yihur.coffeebar;

import com.java.yihur.coffeebar.coffee.Americano;
import com.java.yihur.coffeebar.coffee.Decaf;
import com.java.yihur.coffeebar.coffee.LongBlack;
import com.java.yihur.coffeebar.decorator.Chocolate;
import com.java.yihur.coffeebar.decorator.Milk;

/**
 * @author yihur
 */
public class CoffeeBar {

    public static void main(String[] args) {
        BaseDrink order;
        System.out.println("****************");
        order = new Decaf(1);
        order = new Milk(order);
        order = new Chocolate(order);
        order = new Chocolate(order);
        System.out.println("order1 desc:" + order.getDescription());
        System.out.println("order1 price:" + order.cost());
        System.out.println("****************");
    }
}
